import request from '@/utils/request'

// 查询考勤汇总列表
export function listAttendSummary(query) {
  return request({
    url: '/hr/attendSummary/list',
    method: 'get',
    params: query
  })
}

// 查询考勤汇总详细
export function getAttendSummary(id) {
  return request({
    url: '/hr/attendSummary/' + id,
    method: 'get'
  })
}
// 查询考勤汇总详细
export function summaryAttend(type) {
  return request({
    url: '/hr/attendSummary/summaryAttend/'+ type,
    method: 'get'
  })
}

// 新增考勤汇总
export function addAttendSummary(data) {
  return request({
    url: '/hr/attendSummary',
    method: 'post',
    data: data
  })
}

// 修改考勤汇总
export function updateAttendSummary(data) {
  return request({
    url: '/hr/attendSummary',
    method: 'put',
    data: data
  })
}

// 删除考勤汇总
export function delAttendSummary(id) {
  return request({
    url: '/hr/attendSummary/' + id,
    method: 'delete'
  })
}
